import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import * as Three from 'three';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';


Vue.use(ElementUI);
// Vue.config.productionTip = false
Vue.prototype.$three = Three;
Vue.prototype.$orbitControls = OrbitControls;
Vue.prototype.$GLTFLoader = GLTFLoader;


// 4. 创建和挂载根实例。
// 通过 router 配置参数注入路由，
// 从而让整个应用都有路由功能
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})